package com.wwl.cms.utils.designModeTest.adapter.classadapter;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/6 16:30
 * @description:适配器模式
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("=====类适配器模式=======");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }
}
